# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-fuse
_pkgname=fuse-python
pkgver=1.0.0
pkgrel=2
pkgdesc='Bindings for FUSE.'
url='https://pypi.org/project/fuse-python/#files'
arch=('x86_64' 'aarch64')
license=('LGPL')
depends=('python2' 'fuse2')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('de8f6bc31965f3a12bba6eb7f7ca3f20fd59e6f554432f6f34d198368f11a820792c8a3058d749789f2e63ce83f770b91f5a7c2a9dc108d3d451464d2c5dace1')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

